import request from '@/utils/request'

// 查询参加的活动列列表
export function listAttendlist(query) {
  return request({
    url: '/event/attendlist/list',
    method: 'get',
    params: query
  })
}

// 查询参加的活动列详细
export function getAttendlist(id) {
  return request({
    url: '/event/attendlist/' + id,
    method: 'get'
  })
}

// 新增参加的活动列
export function addAttendlist(data) {
  return request({
    url: '/event/attendlist',
    method: 'post',
    data: data
  })
}

// 修改参加的活动列
export function updateAttendlist(data) {
  return request({
    url: '/event/attendlist',
    method: 'put',
    data: data
  })
}

// 删除参加的活动列
export function delAttendlist(id) {
  return request({
    url: '/event/attendlist/' + id,
    method: 'delete'
  })
}
